/**
 * 应用常量
 * Created by yangxin on 2016/11/25.
 */
// 应用名称
export const APP_TITLE = 'iView'                        // 应用名称全称

export const API_TOKEN = 'api_token'                    // 接口API_TOKEN
export const CHANNEL = 'channel'                        // 渠道
export const SIGN_SECURITY_KEY = 'iview'	            // 参数签名密钥
export const PARAM_SIGN_NAME = 'sign'	                // 签名参数名

// 分页全局常量
export const DEFAULT_PAGE_NO = 0
export const DEFAULT_PAGE_SIZE = 10

//页面布局全局常量
export const DEFAULT_ROW_GUTTER = 15
export const DEFAULT_LABEL_WIDTH = 120
export const ALL_TEXT = '全部'

// API响应码
export const REQUEST_SUCCESS = 1000
export const REQUEST_LOGIN_SUCCESS = 1100       // 登录成功
export const REQUEST_API_TOKEN_INVALID = 2001   // token失效

// --------------------localStorage keys-----------------------
export const CACHE_USER_INFO = 'CACHE_USER_INFO'
export const CACHE_API_TOKEN = 'CACHE_API_TOKEN'
export const CACHE_USER_NAV = 'CACHE_USER_NAV'

// --------------------Event-----------------------
export const EVENT_LOGIN_SUCCESS = 'EVENT_LOGIN_SUCCESS'        // 登录成功事件
export const EVENT_LOGOUT_SUCCESS = 'EVENT_LOGOUT_SUCCESS'      // 退出登录成功事件

export const USER_AVATAR_IMAGE = ''

// 性别
export const SEX_MAN = 1
export const SEX_WOMAN = 2
export const SEX = [{
    code: 1,
    name: '男'
},{
    code: 2,
    name: '女'
}]

// 状态
export const STATUS_ENABLED = 1
export const STATUS_DISABLED = 2
export const STATUS = [{
    code: 1,
    name: '启用'
},{
    code: 2,
    name: '禁用'
}]

// 判定
export const JUDGE_IS = 1
export const JUDGE_NOT = 2
export const JUDGE = [{
    code: 1,
    name: '是'
},{
    code: 2,
    name: '否'
}]
